def decorator(fn):
	def inner(*args, **kwargs):
		print("正在计算中...")
		return fn(*args, **kwargs)
	return inner

@decorator
def sum_num(a, b):
	result = a + b
	return result

@decorator
def sub(a, b):
	result = a - b
	print(result)

@decorator
def mul(*args, **kwargs):
	result = 1

	if args:
		for value in args:
			result *= value

	if kwargs:
		for value in kwargs.values():
			result *= value

	if args == None and kwargs == None:
		result = 0

	return result


print(sum_num(1, 2))
sub(3, 2)
print(mul(1, 3, 5))



